/**
 * com.dingjian.permission.dao.impl.JobPermissionDaoImpl.java
 */
package com.dingjian.permission.dao.impl;

import org.springframework.stereotype.Component;

import com.dingjian.base.dao.impl.BaseDaoImpl;
import com.dingjian.permission.dao.JobPermissionDao;

/**
 * @author FengMy
 *
 * @since 2012-10-7
 */
@Component(value="jobPermissionDao")
public class JobPermissionDaoImpl extends BaseDaoImpl implements
		JobPermissionDao {

	@Override
	public void deleteByJob(String job) {
		getSqlSession().delete(getNameSpace() + ".deleteByJob", job);
	}

	@Override
	public void deleteByPermissionItem(String permissionItem) {
		getSqlSession().delete(getNameSpace() + ".deleteByPermissionItem", permissionItem);
	}

	@Override
	protected String getNameSpace() {
		return "com.dingjian.permission.dao.JobPermissionDao";
	}

}
